package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.linlinjava.litemall.db.domain.LumiereCloverCard;
import org.linlinjava.litemall.db.domain.LumiereCloverCardExample;

public interface LumiereCloverCardMapper extends MPJBaseMapper<LumiereCloverCard> {
    long countByExample(LumiereCloverCardExample example);

    int deleteByExample(LumiereCloverCardExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LumiereCloverCard record);

    int insertSelective(LumiereCloverCard record);

    LumiereCloverCard selectOneByExample(LumiereCloverCardExample example);

    LumiereCloverCard selectOneByExampleSelective(@Param("example") LumiereCloverCardExample example, @Param("selective") LumiereCloverCard.Column ... selective);

    List<LumiereCloverCard> selectByExampleSelective(@Param("example") LumiereCloverCardExample example, @Param("selective") LumiereCloverCard.Column ... selective);

    List<LumiereCloverCard> selectByExample(LumiereCloverCardExample example);

    LumiereCloverCard selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LumiereCloverCard.Column ... selective);

    LumiereCloverCard selectByPrimaryKey(Integer id);

    LumiereCloverCard selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LumiereCloverCard record, @Param("example") LumiereCloverCardExample example);

    int updateByExample(@Param("record") LumiereCloverCard record, @Param("example") LumiereCloverCardExample example);

    int updateByPrimaryKeySelective(LumiereCloverCard record);

    int updateByPrimaryKey(LumiereCloverCard record);

    int logicalDeleteByExample(@Param("example") LumiereCloverCardExample example);

    int logicalDeleteByPrimaryKey(Integer id);

    @Select("SELECT * FROM lumiere_clover_card WHERE user_id = #{userId}")
    LumiereCloverCard findByUserId(@Param("userId")Integer userId);
}